package com.company.bookstore.mapper.order_module;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.company.bookstore.entities.order_module.Order;
import com.company.bookstore.entities.user_admin_module.Address;
import org.apache.ibatis.annotations.Select;

import java.util.Date;
import java.util.List;


/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 赵云霞
 * @since 2020-09-08
 */
public interface OrderMapper extends BaseMapper<Order> {

    Order getOrderDetail(int oid);

    List<Order> getOrderList(int uid);

    @Select("select t_address.* from t_address,t_order" +
            " where t_address.id = t_order.order_add" +
            " and t_order.id = #{ id }")
    Address getOrderAddress(int oid);

}
